package com.jeesite.modules.stock.dao.mapper;

import com.jeesite.common.dao.CrudDao;
import com.jeesite.common.mybatis.annotation.MyBatisDao;
import com.jeesite.modules.stock.entity.UserRequestLogsEntity;
import org.apache.ibatis.annotations.Param;

import java.util.Date;

@MyBatisDao
public interface UserRequestLogsMapper extends CrudDao<UserRequestLogsEntity> {

    int getRequestCountAfterTime(@Param("userId") String userId,
                                        @Param("interfaceName") String interfaceName,
                                        @Param("time") Date time);

    void updateValid(@Param("userId") String userId,
                     @Param("time") Date time,
                     @Param("valid") Integer valid);
}
